package user;

import book.BookList;
import operation.Operation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-04-17
 * Time: 8:53
 */
public abstract class User {
    private String name;
    Operation[] dooperation;



    public User(String name) {
        this.name = name;
    }


    public abstract int menu();

    public void setDooperation(int choice, BookList bookList) {
        dooperation[choice].work(bookList);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
